#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"
int main()
{
	SLNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPushFront(&plist, 5);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);
	SLTPopFront(&plist);
	SLTPrint(plist);

	SLNode* pos = SLTFind(plist, 2);
	SLTInsert(&plist, pos, 0);
	SLTPrint(plist);
	/*SLTErase(&plist, pos);
	SLTPrint(plist);*/

	SLTInsertAfter(pos, 0);
	SLTPrint(plist);
	SLTEraseAfter(pos);
	SLTPrint(plist);

	SLTDestroy(&plist);

	return 0;
}